<template>
  <div class="projectBoardItem">
    <div class="number" v-if="board.totalIssue">
      {{board.solvedIssue}}
      <span class="number2">/ {{board.totalIssue}}</span>
    </div>
    <div class="explain" v-if="board.totalIssue">{{ board.explain }}</div>
    <div class="downLine" v-if="board.totalIssue">
      <a-progress :percent="(board.solvedIssue/ board.totalIssue) * 100" :show-info="false"></a-progress>
    </div>
    <div class="number" v-if="board.totalRisk">
      {{ board.solvedRisk }}
      <span class="number2">/ {{ board.totalRisk }}</span>
    </div>
    <div class="explain" v-if="board.totalRisk">{{ board.explain }}</div>
    <div class="downLine" v-if="board.totalRisk">
      <a-progress :percent="(board.solvedRisk / board.totalRisk) * 100" :show-info="false"></a-progress>
    </div>
    
    
  </div>
</template>
<script>
export default {
  name: "projectBoardItem",
  props: {
    board: {
      type: Object,
      default: () => {}
    }
  }
};
</script>
<style lang="less" scoped>
.projectBoardItem {
  width: 110px;
  padding: 25px 0;
  cursor: pointer;
  .number {
    padding: 5px 0;
    font-size: 30px;
    color: #333;
    text-align: center;
    .number2 {
      color: #999;
      font-size: 20px;
    }
  }
  .explain {
    padding: 5px 0;
    color: #999;
    font-size: 14px;
    text-align: center;
  }
  // .downLine {
    // margin: 10px 0 0;
    // height: 8px;
    // background-color: #75d06c;
    /deep/.ant-progress-bg{
      background-color: #75d06c!important;
    }
  // }
}
</style>